var express = require("express");
var mustache = require("mustache-express");

// routes
var site = require("./routes/site");

var app = express();

app.use(express.static("public"));

app.engine("html", mustache());

app.set("views", __dirname + "/views");
app.set("view engine", "html");

app.get("/", site.index);
app.get("/page", site.page);

var server = app.listen(3000, function(){
    console.log("Server listening at http://localhost:3000/");
});